package docs.cvs.dao.impl;

import docs.cvs.dao.UserDao;
import docs.cvs.pojo.User;

import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * 用户模块DAO业务层实现
 */
@Repository("userDao")
public class UserDaoImpl implements UserDao {

    public void save(User user) {
        System.out.println( "保存到数据库");
    }
    
    @Override
    public User getUser(User user) {
        System.out.println(user);
        user.setRealName("刘志辉");
        return user;
    }
}
